/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_prod_offer_bill.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROD_OFFER_BILL
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_prod_offer_bill.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROD_OFFER_BILL::CTable_PPM_PROD_OFFER_BILL( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROD_OFFER_BILL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );
  CODE.setField( "CODE", DATA_CHAR, 200, 0 );
  makeTableItem( CODE );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  ACCOUNT_CODE.setField( "ACCOUNT_CODE", DATA_CHAR, 100, 0 );
  makeTableItem( ACCOUNT_CODE );
  ACCOUNT_NAME.setField( "ACCOUNT_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( ACCOUNT_NAME );
  BILL_NAME.setField( "BILL_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( BILL_NAME );
  OTHER_NAME.setField( "OTHER_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( OTHER_NAME );
  THIRD_NAME.setField( "THIRD_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( THIRD_NAME );
  FOURTH_NAME.setField( "FOURTH_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( FOURTH_NAME );
}


CTable_PPM_PROD_OFFER_BILL::CTable_PPM_PROD_OFFER_BILL( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROD_OFFER_BILL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );
  CODE.setField( "CODE", DATA_CHAR, 200, 0 );
  makeTableItem( CODE );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  ACCOUNT_CODE.setField( "ACCOUNT_CODE", DATA_CHAR, 100, 0 );
  makeTableItem( ACCOUNT_CODE );
  ACCOUNT_NAME.setField( "ACCOUNT_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( ACCOUNT_NAME );
  BILL_NAME.setField( "BILL_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( BILL_NAME );
  OTHER_NAME.setField( "OTHER_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( OTHER_NAME );
  THIRD_NAME.setField( "THIRD_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( THIRD_NAME );
  FOURTH_NAME.setField( "FOURTH_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( FOURTH_NAME );
}

CTable_PPM_PROD_OFFER_BILL::~CTable_PPM_PROD_OFFER_BILL( )
{
    close();
}

